<tr data-id="<%= election.id %>">
  <td data-label="<%= t("models.election.fields.title", scope: "decidim.elections") %>">
    <% if allowed_to? :update, :election, election: election %>
      <%= link_to present(election).title(html_escape: true), election.started? ? dashboard_election_path(election) : edit_election_path(election) %>
    <% else %>
      <%= present(election).title(html_escape: true) %>
    <% end %>
  </td>
  <td data-label="<%= t("models.election.fields.start_at", scope: "decidim.elections") %>">
    <% if election.start_at %>
      <%= l election.start_at, format: :decidim_short %>
    <% else %>
      <%= t("decidim.elections.admin.elections.form.manual_start") %>
    <% end %>
  </td>
  <td data-label="<%= t("models.election.fields.end_at", scope: "decidim.elections") %>">
    <% if election.end_at %>
      <%= l election.end_at, format: :decidim_short %>
    <% end %>
  </td>
  <td data-label="<%= t("models.election.fields.status", scope: "decidim.elections") %>">
    <%= election_status_with_label(election) %>
  </td>
  <td>
    <%= election.census&.label %>
  </td>
  <td data-label="<%= t("actions.title", scope: "decidim.elections") %>" class="table-list__actions">
    <%= render partial: "decidim/elections/admin/elections/actions", locals: { election: election, view: view } %>
  </td>
</tr>
